package com.eliaukjq.xunlianying;

/**
 * @Author : 佩萁
 * Description :
 * @Create : 2024/7/10 - 19:04
 */
public abstract class Animal {
    protected int age;

    public Animal(int age) {
        this.age = age;
    }

    abstract void makeSound();  // 抽象方法

    public void eat() {
        System.out.println("This animal eats food.");
    }
}
